<?
require_once("lib/php/controller/Controller.php");

abstract class ViewController implements Controller {
	public function doPost() {
		die("Error: ViewController::doPost not implemented.");
	}
	
	protected function loadView($path, $vars = array()) {
		foreach ($vars as $key => $value) {
			$$key = $value;
		}
		
		require($path);
	}
}
?>
